import router from "./router";
import {userRoutes} from "./user";
import {visitor} from "./visitor";
import {superRoutes} from "./super";

export function changeRouter(auth: number) {
    visitor.forEach(item => router.addRoute(item))
    if(auth===2) return;
    userRoutes.forEach(item => router.addRoute(item))
    if(auth===1) return;
    superRoutes.forEach(item => router.addRoute(item))
}